#pragma once
#include <opencv\cv.h>
#include <opencv\cxcore.h>

#include "processstep.hxx"

class ProcessStream;

class FrameUndistortStep :
	public ProcessStep
{
public:
	FrameUndistortStep(ProcessStream* stream);
	~FrameUndistortStep(void);

	void initialize();
	void execute();

	void loadParameters();

private:
	
	CvMat* _cameraMatrix;
    CvMat* _distCoeffMatrix;

    IplImage* _mapX;
    IplImage* _mapY;

	IplImage* _imageHeader;
};

